package a_arrays;

import java.util.Arrays;

//Arrays操作对象数组
public class ArraysDemo02 {
    public static void main(String[] args) {
        //新建Student类型数组
        Student[] students = new Student[4]; //[null,null,null,null]
        students[0] = new Student("lucy",169.8,23);
        students[1] = new Student("marry",169,18);
        students[2] = new Student("tom",180,24);
        students[3] = new Student("jack",189.7,33);

        //对数组进行做排序操作
        Arrays.sort(students);
        System.out.println(Arrays.toString(students));

    }
}














